package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Product;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    Product selectByPrimaryKey(Long id);

    List<Product> selectForList(QueryObject qo);

    int updateByPrimaryKey(Product record);

    List<Product> selectProductById(@Param("id") Long id, @Param("qo")QueryObject qo);

    List<Product> selectCommend(@Param("beginDate")Date beginDate, @Param("endDate")Date endDate,@Param("qo")QueryObject qo);

    List<Product> selectByMoney();

}